//
//  XMLParser.h
//  Alfresco
//
//  Created by Michael Muller on 8/22/09.
//  Copyright 2010 Zia Consulting.  Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 
//

#import <Foundation/Foundation.h>
#import "XMLNode.h"

@interface XMLParser : NSXMLParser {
	XMLNode *root;
	NSMutableArray *stack;
}

@property (nonatomic, retain) XMLNode *root;
@property (nonatomic, retain) NSMutableArray *stack;

- (id)initWithContentsOfURL:(NSURL *)url;
- (void) dealloc;
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict;
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string;
@end
